// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import dataV from '@jiaminghi/data-view'
import Highcharts from 'highcharts'
import exportingInit from 'highcharts/modules/exporting'
import HighchartsVue from 'highcharts-vue'
import highcharts3d from 'highcharts/highcharts-3d'
import stockInit from "highcharts/modules/stock";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios';
import '@/assets/css/base.css';
// import 'xe-utils'
// import VXETable from 'vxe-table'
// import 'vxe-table/lib/style.css'
//
// Vue.use(VXETable)

Vue.prototype.$axios = axios
axios.defaults.baseURL = 'https://ewm.rsj.jinhua.gov.cn/jhApi'
axios.defaults.headers.post['Content-Type'] = 'application/json';

Vue.use(ElementUI);
stockInit(Highcharts);
exportingInit(Highcharts)
Vue.use(HighchartsVue)
highcharts3d(Highcharts)
Vue.use(dataV)
Vue.config.productionTip = false
Vue.prototype.$http = axios

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})
